package com.rnkrsoft.suyan.config.server.services.param.domains;

import com.rnkrsoft.suyan.config.internal.enums.ParamStatusEnum;
import com.rnkrsoft.suyan.config.internal.enums.YesOrNo;
import com.rnkrsoft.suyan.config.protocol.v2.DataTypeEnum;
import com.rnkrsoft.suyan.config.protocol.v2.ParamType;
import lombok.Data;

import javax.doc.annotation.ApidocElement;
import java.io.Serializable;

@Data
public class ImportParamRecord implements Serializable {
    @ApidocElement(value = "参数名")
    String paramName;
    @ApidocElement(value = "参数值")
    String paramValue;
    @ApidocElement(value = "数据类型", enumClass = DataTypeEnum.class)
    Integer paramDataType;
    @ApidocElement(value = "参数类型", enumClass = ParamType.class)
    Integer paramType;
    @ApidocElement(value = "是否动态参数", enumClass = YesOrNo.class, defaults = "1")
    String paramDynamic;
    @ApidocElement(value = "是否加密参数", enumClass = YesOrNo.class, defaults = "1")
    String paramEncrypt;
    @ApidocElement(value = "是否为SystemProperties参数", enumClass = YesOrNo.class, defaults = "1")
    String paramSystemProperties;
    @ApidocElement(value = "参数状态", enumClass = ParamStatusEnum.class)
    Integer paramStatus;
    @ApidocElement(value = "参数描述", required = false)
    String paramDesc;
}
